<template>
	<view style="margin-top: 15px;">
		<view class="item-row" v-if="!acceptance">
			<view class="t-title title">维修订单:<i></i></view>
			<view class="t-content">{{item.repairOrderCode}}</view>
		</view>
		<view class="item-row" v-if="acceptance">
			<view class="t-title title">订单编号:<i></i></view>
			<view class="t-content">{{item.repairOrderCode}}</view>
		</view>
		<!-- <view class="item-row">
			<view class="t-title title">班组:<i></i></view>
			<view class="t-content">{{item.workProcedureName}}</view>
		</view>
		<view class="item-row">
			<view class="t-title title">岗位类型:<i></i></view>
			<view class="t-content">{{item.workstationTypeName}}</view>
		</view> -->
		<view class="item-row">
			<view class="t-title title">设备编号:<i></i></view>
			<view class="t-content">{{item.deviceCode}}</view>
		</view>
		<view class="item-row">
			<view class="t-title title">设备名称:<i></i></view>
			<view class="t-content">{{item.deviceName}}</view>
		</view>
		<view class="item-row">
			<view class="t-title title">设备故障:<i></i></view>
			<view class="t-content">{{item.badName}}</view>
		</view>
		<view class="item-row">
			<view class="t-title title">故障描述:<i></i></view>
			<view class="t-content">{{item.badDesc}}</view>
		</view>
		<view class="item-row" v-if="acceptance">
			<view class="t-title title">维修措施:<i></i></view>
			<view class="t-content">{{item.repairDesc}}</view>
		</view>
		<!-- <view class="item-row" v-if="acceptance">
			<view class="t-title title">维修说明:<i></i></view>
			<view class="t-content">{{}}</view>
		</view> -->
		<view class="item-row" v-if="acceptance">
			<view class="t-title title">维修人:<i></i></view>
			<view class="t-content">{{item.repairUserName}}</view>
		</view>
		
		<view class="item-row" v-if="!acceptance">
			<view class="t-title title">设备位置:<i></i></view>
			<view class="t-content">{{item.location}}</view>
		</view>
		<view class="item-row" v-if="!acceptance">
			<view class="t-title title">报修人:<i></i></view>
			<view class="t-content">{{item.troubleUserName}}</view>
		</view>
		<view class="item-row" v-if="!acceptance">
			<view class="t-title title">紧急程度:<i></i></view>
			<view class="t-content">{{item.troubleLevelStr?item.troubleLevelStr:item.troubleLevel}}</view>
		</view>
		<view class="item-row" v-if="!acceptance">
			<view class="t-title title">提报类型:<i></i></view>
			<view class="t-content">{{item.repairOrderType}}</view>
		</view>
		<!-- <view class="item-row" v-if="!acceptance">
			<view class="t-title title">维修订单:<i></i></view>
			<view class="t-content">WX202207210001</view>
		</view> -->
		<!-- <view class="item-row" v-if="!acceptance">
			<view class="t-title title">接单人:<i></i></view>
			<view class="t-content">大龙</view>
		</view> -->
	</view>
</template>

<script>
	import enums from '@/common/utils/enum.js'
	export default {
		data() {
			return {
				enums:enums,
			}
		},
		props: {
			item:{
				type:Object,
				default:{}
			},
			acceptance:{
				type:Boolean,
				default:true
			},
		},
	}
</script>

<style>
	@import url("@/pages/general/general.css");
</style>